package com.hospital.common.core.module.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author lvyao
 * @since 2021-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("OUTP_BILL_ITEMS")
public class OutpBillItems implements Serializable {

    private static final long serialVersionUID = 1L;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("VISIT_DATE")
    private Date visitDate;

    @TableField("VISIT_NO")
    private Integer visitNo;

    @TableField("RCPT_NO")
    private String rcptNo;

    @TableField("ITEM_NO")
    private Integer itemNo;

    @TableField("ITEM_CLASS")
    private String itemClass;

    @TableField(exist = false)
    private String itemClassName;

    @TableField("CLASS_ON_RCPT")
    private String classOnRcpt;

    @TableField("ITEM_CODE")
    private String itemCode;

    @TableField("ITEM_NAME")
    private String itemName;

    @TableField("ITEM_SPEC")
    private String itemSpec;

    @TableField("AMOUNT")
    private BigDecimal amount;

    @TableField("UNITS")
    private String units;

    @TableField("PERFORMED_BY")
    private String performedBy;

    @TableField(exist = false)
    private String performedByName;

    @TableField("COSTS")
    private BigDecimal costs;

    @TableField("CHARGES")
    private BigDecimal charges;

    @TableField("SPECIAL_CHARGES")
    private BigDecimal specialCharges;

    @TableField("PRIVILEGE_FLAG")
    private String privilegeFlag;

    @TableField("MINUS_FLAG")
    private String minusFlag;

    @TableField("STATUS")
    private String status;

    @TableField("YB_SELFPAY_RATIO")
    private BigDecimal ybSelfpayRatio;

    @TableField("CHECKER")
    private String checker;

    @TableField("CHECK_DATE")
    private Date checkDate;

    @TableField("STATUS1")
    private String status1;

    @TableField("CHECKER1")
    private String checker1;

    @TableField("CHECK_DATE1")
    private Date checkDate1;

    @TableField("SELFPAY_DRUG")
    private String selfpayDrug;

    @TableField("BARCODE")
    private String barcode;

    @TableField("PAYMENTS_PERCENT")
    private BigDecimal paymentsPercent;
    /**
     * 为查询订单库存获取的当前批次
     */
    @TableField(exist = false)
    private String nowBatchNo;

}
